package com.zlh.hdfsfilesys.mapper;

import com.zlh.hdfsfilesys.entity.User;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author ZhangLuhao
 * @since 2021-07-13
 */
@Repository
public interface UserMapper extends BaseMapper<User> {
    @Select("select id,name from user where name=#{name} and password=#{password} ")
    List<User> selUserLogin(String name, String password);


    @Select("select * from user where name=#{name} and tel=#{tel} ")
    List<User> selFindPwd(String name, String tel);


}
